<template>
  <meta name="referrer" content="no-referrer">
    <van-swipe :autoplay="3000" lazy-render>
  <van-swipe-item v-for="image in images" :key="image.imgSrc">
    <img :src="image.imgSrc" />
  </van-swipe-item>
</van-swipe>

</template>
<script setup lang="ts">
 import {ref} from 'vue'
 import axios from 'axios'

 interface image {
   link:string,
   imgSrc:string
  }
  let images = ref<image[]>([])
 axios({
    url:'/swiperList',
    method:'GET' 
 }).then(res=>{
    console.log(res.data.result);
    
    images = res.data.result
 })
 
</script>